$(window).load(function () {
    $('.slider')._TMS({
        preset: 'diagonalExpand',
        easing: 'easeOutQuad',
        duration: 800,
        pagination: true,
        slideshow: 6000
    });
})

$(document).ready(function () {

    // initialise plugin
    var example = $('ul#menu').superfish({
        //add options here if required
    });

    // buttons to demonstrate Superfish's public methods
    $('.destroy').on('click', function () {
        example.superfish('destroy');
    });

    $('.init').on('click', function () {
        example.superfish();
    });

    $('.open').on('click', function () {
        example.children('li:first').superfish('show');
    });

    $('.close').on('click', function () {
        example.children('li:first').superfish('hide');
    });
});

            